
import { Component } from "react";
import HospitalBedAllHeader from "../../components/AllHospitalSearch";
import HospitalBedAllMain from "../../components/HospitalBed";

class HospitalBedAll extends Component {
    constructor(props) {
        super(props);
        this.state = { 
            data:null
        }
    }
    getSearchData(data){
        console.log('父组件中的',data);
        this.setState({ data });
    }
    render() {  
        return (<div className='HospitalBedAll_box'>
            <HospitalBedAllHeader getSearchData={(data)=>this.getSearchData(data)}/>     
            <HospitalBedAllMain data={this.state.data}/>       
        </div>);
    }
}
 
export default HospitalBedAll;